import request from '@/utils/request'


export function getTask(data) {
  console.log('我请求了：',data)
  return request({
    url: '/t/queryAllTask',
    method: 'post',
    params: data
  })
}

export function create(data) {
  return request({
    url: '/t/create',
    method: 'post',
    data
  })
}

export function accept(tid,uid){
  return request({
    url: '/t/accept',
    method: 'post',
    params: {tid, uid}
  })
}

export function deal(tid,uid){
  return request({
    url: '/t/deal',
    method: 'post',
    params: {tid, uid}
  })
}

export function del(id){
  return request({
    url: '/t/delTask/'+id,
    method: 'get',
  })
}
